﻿ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FUBGetDateFromPartsFirstDay]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
BEGIN
	DROP FUNCTION [dbo].[FUBGetDateFromPartsFirstDay]
END
GO

CREATE FUNCTION FUBGetDateFromPartsFirstDay (@pYear NUMERIC (4,0), @pMonth NUMERIC (2, 0))
RETURNS DATETIME
AS
BEGIN

	RETURN dbo.FUBGetDateFromParts (@pYear, @pMonth, 1)

END